{strip}
<script type="text/javascript">

{literal}

	/* Ajax requests */

	/* Pobieranie przy pomocy ajaxa listy skinwrolds dla danego sklepu i danej kategorii*/
                    
    function loginForm(){
	    $.ajax({
		    type: "GET",
		    url: "/login",
		    data: {

		    },
		    success: function(data){
			    showPopup(data, 'Login form', false);
                                    
		    },
		    error: function(xhr, statusText, errorThrown){
			    showPopup(xhr.responseText, statusText, false);
		    }
	    });
    }

    function registerForm(){
	    $.ajax({
		    type: "GET",
		    url: "/index/register",
		    data: {

		    },
		    success: function(data){
			    showPopup(data, 'Register', false);
                                    
		    },
		    error: function(xhr, statusText, errorThrown){
			    showPopup(xhr.responseText, statusText, false);
		    }
	    });
    }

	

</script>
<style>
.button_menu {
	text-decoration: none;
	padding-right: 23px;
	font-size: 8pt;
}

.button_menu_box {
	padding-top: 8px;
	font-size: 8pt;
}

#header_right a:link{
	font-size: 11pt;
}

#header_right a:visited{
	font-size: 11pt;
}

#header_right a:hover{
	font-size: 11pt;
}

#header_right {
{/literal}
	width: {if $loggedUser && $loggedUser->getIsAdministrator()}650{elseif $loggedUser}545{else}200{/if}px;
{literal}
}
</style>
{/literal}
<!-- header -->
<div id="header">
    <!--<div id="header_left" ><a href="/" >xProject</a></div>-->
    <div id="header_right" >
        {if $loggedUser}
			<div class="left">
		        	{if $pageInfo}
			        	{if $pageInfo->getToplineText() != ''}
			        		{$pageInfo->getToplineText()}
			        	{else}
			    
			        	{/if}
		        	{/if}
		        	<!--<a href="/lang/en">en</a>&nbsp;|&nbsp;
			    	<a href="/lang/de">de</a>-->
		
			</div>
			<div class="right">
				<div class="button_menu_box">
						<div class="left">
				        <ul class="dropdown">
				        	<li><a class="button_menu" href="/">Home</a></li>
				        	<li><a class="button_menu" href="/account/inbox">Inbox</a></li>
				        	<li><a class="button_menu" href="/account">Profile&nbsp;<img src="/public/styles/images/down-arrow.gif" border="0"/></a>
			        	   		<ul class="sub_menu">
			        				<li><a href="/account/favourites">Stuff I like</a></li>
			        				<li><a href="/account">Settings</a></li>
			        			</ul>
			        		</li>
			        		<li><a class="button_menu" href="/account/add-offer" style="color: #C7FFB7;">Start Selling</a></li>
			        		<li><a class="button_menu" href="/account/orders">Buyer&nbsp;<img src="/public/styles/images/down-arrow.gif" border="0"/></a>
			        			<ul class="sub_menu">
			        				<li><a href="/account/orders">My Shopping</a></li>
			        				<li><a href="/account/balance">Payments</a></li>
			        			</ul>
			        		</li>
			        	</ul>
			        	</div>
			        	<div class="left">
		            	{if $loggedUser->getIsAdministrator() || $loggedUser->getIsOperator()}
		                	<a href="/admin" class="button_menu">admin</a> 
						{/if} Welcome back <a href="/users/{$loggedUser->getUsername()}" class="button_menu1" style="font-size:8pt">{$loggedUser->getUsername()}</a> - <a class="button_menu1" href="/login/logout" style="font-size:8pt">log out</a>
						</div>
						<div class="clear"></div>
			</div>
			<div class="clear"> </div>
        {else}

	        <div class="left">
	        	{if $pageInfo}
		        	{if $pageInfo->getToplineText() != ''}
		        		{$pageInfo->getToplineText()}
		        	{else}
		    
		        	{/if}
	        	{/if}
	        	<!--<a href="/lang/en">en</a>&nbsp;|&nbsp;
		    	<a href="/lang/pl">pl</a>-->
			</div>
			<div class="right">
				<div class="button_menu_box">
				<a class="button_menu" href="/">Home</a> 
				<!--<a class="button_menu" href="#" onclick="registerForm();">sign in</a>&nbsp;&nbsp;-->
				<a class="button_menu" href="/register">Join</a>
				<!--<a class="button_menu" href="#" onclick="loginForm();">log in</a>-->
				<a class="button_menu" href="/login" >Sign in</a>
				</div>	
			</div>
			<div class="clear"> </div>
        {/if}
        </div>
        <div id="topMenu">
	    <div class="header-menu" >

	    </div>
        </div>

    </div>
</div>
<!-- end header -->
{/strip}